<?php
class Snap extends Controller {
	public function __construct() {
		parent::__construct();
		$this->load->model("Snap_model","snap");
	}

	public function index() {
		$result = $this->snap->retrive();
		$data['snaps'] = $result;
		$data['fields'] = $this->snap->listfields();
		$this->load->library("table");
		$this->load->view("snap",$data);
	}
}
?>